public class C_R_ProblemDemo {
    public static void main(String[] args) {

        Reso rs = new Reso();
        Prod producer = new Prod(rs);

        Consumer consumer = new Consumer(rs);

        Thread t1 = new Thread(producer);
        Thread t2 = new Thread(consumer);

        t1.start();
        t2.start();
    }
}
